package com.dog.basics.bean.dto.admin.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
@ApiModel(value = "添加分类信息")
public class ArticleClassAddDto {

    /**
     * 上级分类
     */
    @ApiModelProperty(value = "上级分类", dataType = "Long" )
    private Long pid;

    /**
     * 分类名称
     */
    @ApiModelProperty(value = "分类名称", dataType = "String",required = true)
    @NotBlank(message = "分类名称不能为空")
    @Size(min = 1,max = 50,message = "分类名称长度 1-50")
    private String name;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序", dataType = "Integer")
    private Integer sort;
}
